Developing Middleware in Java EE 8: Build robust middleware solutions using the latest technologies and trends by Abdalla Mahmoud

Developing Middleware in Java EE 8: Build robust middleware solutions using the latest technologies and trends by Abdalla Mahmoud

Author:Abdalla Mahmoud [Mahmoud, Abdalla]
Language: eng
Format: epub
Tags: COM011000 - COMPUTERS / Systems Architecture / General, COM051000 - COMPUTERS / Programming / General, COM051280 - COMPUTERS / Programming Languages / Java
Publisher: Packt Publishing
Published: 2018-06-29T23:00:00+00:00


The current version of HTTP most widely used is HTTP/1.1, but HTTP/2 has been around since 2015, it just has not gained wide implementation yet.

HTTP request

Suppose you have navigated using your web browser to the following URL: http://example.com/products.

The browser (user-agent) connects to the example.com server on port 80 (the default port for web servers), and sends its request. The request may contain many details, but we will examine an example of a minimum one that satisfies the server to make it understand what we need from it:

GET /products HTTP1.1 (request line) Host: example.com (header) User-Agent: Firefox (header)

The first line of the request is called the request line, and consists of the following:

GET: The method used to perform our request; other methods are available (such as POST, PUT, and DELETE). GET means we request for a resource retrieval, whereas POST, for example, means we are sending data to a server, in some other scenarios.

/products: The request path; this defines what resource we are requesting for retrieval from this server.

HTTP/1.1: The protocol that we use in our request; this will always be written like this in all HTTP requests unless we are using another version.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.